import request from '@/utils/request'

// 查询问诊用户列表
export function listMpuser(query) {
  return request({
    url: '/om/mpuser/list',
    method: 'get',
    params: query
  })
}

// 查询问诊用户详细
export function getMpuser(mpuserId) {
  return request({
    url: '/om/mpuser/' + mpuserId,
    method: 'get'
  })
}

// 新增问诊用户
export function addMpuser(data) {
  return request({
    url: '/om/mpuser',
    method: 'post',
    data: data
  })
}

// 修改问诊用户
export function updateMpuser(data) {
  return request({
    url: '/om/mpuser',
    method: 'put',
    data: data
  })
}

// 删除问诊用户
export function delMpuser(mpuserId) {
  return request({
    url: '/om/mpuser/' + mpuserId,
    method: 'delete'
  })
}
